//
//  ComposeTitleView.swift
//  SwiftWB
//
//  Created by 钟清 on 17/4/10.
//  Copyright © 2017年 Zhong Qing. All rights reserved.
//

import UIKit
import SnapKit
class ComposeTitleView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        setupUI()
    }
    
    // MARK: - 内部控制方法
    private func setupUI() {
        addSubview(titleLabel)
        addSubview(subTitleLabel)
        titleLabel.snp_makeConstraints { (make) in
            make.centerX.equalTo(self)
            make.top.equalTo(self)
        }
        subTitleLabel.snp_makeConstraints { (make) in
            make.centerX.equalTo(self)
            make.top.equalTo(titleLabel.snp_bottom)
        }
        
    }
    
    
    // MARK: - Lazy
    private lazy var titleLabel: UILabel = {
        let lb = UILabel()
        lb.text = "发送微博"
        lb.font = UIFont.systemFontOfSize(18)
        return lb
    }()
    private lazy var subTitleLabel: UILabel = {
        let lb = UILabel()
        lb.text = "用户名"
        lb.textColor = UIColor.lightGrayColor()
        lb.font = UIFont.systemFontOfSize(14)
        return lb
    }()

}
